import Controller.stockService;
import Controller.purchaseOrderService;

public class callJCO {
	
	public String[] hello( String p )
	{
		String[] s = new String[5];
		for(int i = 0; i < s.length; i++)
		{
			s[i] = p;
		}
		return s;
	}
	
	public int getCount( String matnr )
	{
		int count = 0;
		stockService sts = new stockService();
		count = sts.getCount(matnr);
		
		return count;
	}
	
	public String[] getRowData(String matnr, int index)
	{		
		String[] value;
		stockService sts = new stockService();
		value = sts.getRowData(matnr, index);
		
		return value;
	}
	
	public String createPO(String co_code, String pur_org, String pur_group,
							String vendor, String pur_mat, 
							String plant, String date, String quantity )
	{
		String po_num = "";
		purchaseOrderService pos = new purchaseOrderService();
		po_num = pos.CreatePO(co_code, pur_org, pur_group, vendor,
								pur_mat, plant, date, quantity);
		
		return po_num;
	}
}